﻿//*** Guidance generated code ***//
using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Linq;
using System.Web.Mvc;

using ProjectBase.Core;
using ProjectBase.Core.Web;

namespace $safeprojectname$.Models
{
    /// <summary>
    ///     Model for ComboBox which could be used also asynchronously
    /// </summary>
    public class ComboBoxModel : CoreModel, IComboBoxModel
    {
        #region IComboBoxModel Members
        /// <summary>
        ///     Collection of Items to be displayed 
        ///     in the combobox (select/option)
        /// </summary>
        public virtual SelectList Items { get; set; }

        /// <summary>
        ///     The name which can be handled in the FORM
        /// </summary>
        public virtual string ComboBoxName { get; set; }

        /// <summary>
        ///     Extending information for class (usually the width)
        /// </summary>
        public virtual string CssClassName { get; set; }

        /// <summary>
        ///     Switch, true == there will be unselected option
        /// </summary>
        public virtual bool ShowEmpty { get; set; }

        /// <summary>
        ///     The last selected (and therefore current) ID
        /// </summary>
        public virtual string SelectedID { get; set; }
        #endregion
    }
}